/**
 * 
 */
package com.hoperun.framework.ibatis.page;

import java.io.Serializable;
import java.util.List;
/**  
 * Copyright: Copyright (c) 2015 XiBang  
 * <br/>
 * ClassName: BootGridPage.java
 * @Description: 该类的功能描述
 *
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2015-6-6 下午5:22:06 
 *
 * Modification History:
 * Date         Author          Version            Description
 *---------------------------------------------------------*
 * 2015-6-6	fuyu				v1.0.0				修改原因
 */

import lombok.Data;

/**
 * Copyright: Copyright (c) 2015 XiBang <br/>
 * ClassName: BootGridPage.java Description: 该类的功能描述
 * 
 * @version: v1.0.0
 * @author: fuyu
 * @date: 2015-6-6 下午5:22:06
 * 
 *        Modification History: Date Author Version Description
 *        ---------------------------------------------------------* 2015-6-6
 *        fuyu v1.0.0 修改原因
 */
@Data
public class BootGridPage<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer current;

	private Integer rowCount;

	private Integer total;

	private List<T> rows;

	/**
	 * @return the current
	 */
	public Integer getCurrent() {
		return current;
	}

	/**
	 * @param current
	 *            the current to set
	 */
	public void setCurrent(Integer current) {
		this.current = current;
	}

	/**
	 * @return the rowCount
	 */
	public Integer getRowCount() {
		return rowCount;
	}

	/**
	 * @param rowCount
	 *            the rowCount to set
	 */
	public void setRowCount(Integer rowCount) {
		this.rowCount = rowCount;
	}

	/**
	 * @return the total
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            the total to set
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return the rows
	 */
	public List<T> getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            the rows to set
	 */
	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	@Override
	public String toString() {
		return "BootGridPage [current=" + current + ", rowCount=" + rowCount
				+ ", total=" + total + ", rows=" + rows + "]";
	}

	/**
	 * 
	 */
	public BootGridPage() {
		super();
	}

	/**
	 * @param current
	 * @param rowCount
	 * @param total
	 * @param rows
	 */
	public BootGridPage(Integer current, Integer rowCount, Integer total,
			List<T> rows) {
		super();
		this.current = current;
		this.rowCount = rowCount;
		this.total = total;
		this.rows = rows;
	}

}
